package com.shopping.service;

import com.shopping.pojo.Product;
import com.shopping.pojo.vo.ProductInfo;
import com.shopping.pojo.vo.ProductSpecInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductService {
    public List<ProductSpecInfo> selectProductByQuery(String productName, String businessName, String cateName, int start, int limit);
    public int getProductNum(String productName, String businessName, String cateName);
    public boolean updateProductStatusCompulsory(Integer productId);
    public boolean updateProductStatusAllow(Integer productId);
    public int getBusinessProductsNum(Integer id);
    public List<Product> selectBusinessProductByProductName(String businessId,String productName);
    public boolean updateProductPutOnSale(Integer productId);
    public boolean updateProductPullOff(Integer productId);
    public boolean deleteProduct(Integer productId);
    public boolean updateProductDelete(Integer productId);
    public boolean insertProduct(Product product);
    public boolean updateProduct(Product product);
    public List<ProductInfo> selectMainRecommendProduct();
    public List<ProductInfo> selectMainNewProduct();
    public List<ProductInfo> selectProductByProductName(String productName);
    public ProductInfo selectProductInfoByProductId(Integer productId);
    public List<ProductInfo> selectProductInfoByBusinessIdAndProductName(String businessId,String productName);
    public List<ProductInfo> selectProductByCateName(String cateName);
    public boolean checkProductByCateId(Integer categoryId);


}
